/**
 * losenote.com Inc.
 * Copyright (c) 2013-2013 All Rights Reserved.
 */
package com.losenote.model;

import java.util.Date;

import com.losenote.enums.MessageTypeEnum;

/**
 * 消息
 * 
 * @author danjingyu
 * @version $Id: Message.java, v 0.1 2013-12-1 下午4:33:42 danjingyu Exp $
 */
public class Message extends ToString {

    private static final long serialVersionUID = 1L;
    /**ID*/
    private int               id;

    /**消息内容*/
    private String            content;

    /**回复id*/
    private int               lastId;

    /**消息类型*/
    private int               relId;

    /**消息类型*/
    private MessageTypeEnum   relType;

    /**创建时间*/
    protected Date            gmtCreate        = new Date();

    /**创建人*/
    protected String          creator;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getLastId() {
        return lastId;
    }

    public void setLastId(int lastId) {
        this.lastId = lastId;
    }

    public int getRelId() {
        return relId;
    }

    public void setRelId(int relId) {
        this.relId = relId;
    }

    public MessageTypeEnum getRelType() {
        return relType;
    }

    public void setRelType(MessageTypeEnum relType) {
        this.relType = relType;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

}
